<template>
  <div>
    <TypeNav></TypeNav>
    <ListContianer></ListContianer>
    <Recommend></Recommend>
    <Rank></Rank>
    <Like></Like>
    <Floor v-for="fList in floorList" :key="fList.id" :list="fList"></Floor>
    
    <Brand></Brand>
  </div>
</template>

<script>
import ListContianer from './List-Contianer/index.vue'
import Recommend from './Recommend/index.vue'
import Rank from './Rank/index.vue'
import Like from './Like/index.vue'
import Floor from './Floor/index.vue'
import Brand from './Brand/index.vue'
export default {
components:{
  ListContianer,
  Recommend,
  Rank,
  Like,
  Floor,
  Brand
},


mounted(){
  //发送请求获取用户数据
  this.$store.dispatch('userInfo')



  this.$store.dispatch('getfloorList')
  
},
computed:{
  floorList(){
    return this.$store.state.home.floorlist
  }
}
}
</script>

<style>

</style>